package com.xxzuibang.day3;

import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        int i = 59;
        int week = i / 7;
        int day = i % 7;
        System.out.println("59天有"+week + "个星期零" + day + "天");
        demo2();

    }

    public static void demo2() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入华氏温度：");
        double huashi = sc.nextDouble();
        double sheshi = 5.0 / 9.0 * (huashi - 100);
        System.out.println("摄氏温度是："+sheshi);
    }
}
